import {act} from 'react-test-renderer';
import * as types from '../action/ActionTypes';

const defaultState = {
  games: [],
};

export default function gameReducer(state = defaultState, action) {
  switch (action.type) {
    case types.GAME_LIST:
      return {
        ...state,
        games: action.games || [],
      };
    default:
      return state;
  }
}
